ia64: Fix xc_save error reporting
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 18 Jun 2010 13:08:57 +0000 (14:08 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 18 Jun 2010 13:08:57 +0000 (14:08 +0100)
This is the patch for error reporting on ia64 that has a special
handling in comparison with i386/x86_64 platforms. This is pretty
straight-forward just to fail on "cannot map mfn page" message instead
of continue since the memory is not being correctly mapped using the
xc_map_foreign_range() function.

From: Michal Novotny <minovotn@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/libxc/ia64/xc_ia64_linux_save.c

index aee0154e5fd0a36d029eb0faeaf651caf2601f85..24a1dbe3c86b3c85e7161fc3f534b5a61fb3330e 100644 (file)
@@ -647,7 +647,7 @@ xc_domain_save(xc_interface *xc_handle, int io_fd, uint32_t dom, uint32_t max_it
                     fprintf(stderr, "cannot map mfn page %lx gpfn %lx: %s\n",
                             xc_ia64_p2m_mfn(&p2m_table, N),
                             N, safe_strerror(errno));
-                    continue;
+                    goto out;
                 }
 
                 if (write_exact(io_fd, &N, sizeof(N))) {